﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ORM.Model
{
    public class Information_Schema
    {
        private Dictionary<String, String> TableMapDic { set; get; }
        public Information_Schema()
        {
            TableMapDic = new Dictionary<String, String>();
        }

        public void AddTableMap(string TableName,string KeyFieldName)
        {
            if (!TableMapDic.ContainsKey(TableName))
	        {
                TableMapDic.Add(TableName, KeyFieldName);
	        }
        }

        public string GetKeyFieldName(string TableName)
        {
            return TableMapDic[TableName];
        }
    }
}
